20.0999 protons 0.300000 seconds 0.099918 decpart !
17.2285 protons 0.350000 seconds 0.228500 decpart !
15.0749 protons 0.400000 seconds 0.074938 decpart !
12.0599 protons 0.500000 seconds 0.059950 decpart !
10.0500 protons 0.600000 seconds 0.049958 decpart !
8.0400 protons 0.750000 seconds 0.039966 decpart !
7.0941 protons 0.850000 seconds 0.094088 decpart !
6.0300 protons 1.000000 seconds 0.029975 decpart !
5.2435 protons 1.150000 seconds 0.243457 decpart !
5.0250 protons 1.200000 seconds 0.024980 decpart !
4.1586 protons 1.450000 seconds 0.158605 decpart !
4.0200 protons 1.500000 seconds 0.019985 decpart !
3.1737 protons 1.899999 seconds 0.173673 decpart !
3.0923 protons 1.949999 seconds 0.092296 decpart !
3.0150 protons 1.999999 seconds 0.014989 decpart !
2.2333 protons 2.699999 seconds 0.233325 decpart !
2.1927 protons 2.749999 seconds 0.192719 decpart !
2.1536 protons 2.799999 seconds 0.153564 decpart !
2.1158 protons 2.849998 seconds 0.115782 decpart !
2.0793 protons 2.899998 seconds 0.079303 decpart !
2.0441 protons 2.949998 seconds 0.044061 decpart !
2.0100 protons 2.999998 seconds 0.009993 decpart !
1.2433 protons 4.850000 seconds 0.243294 decpart !
1.2306 protons 4.900001 seconds 0.230607 decpart !
1.2182 protons 4.950001 seconds 0.218177 decpart !
Here is the code for the program:!
#include <stdio.h>!
#include <math.h>!
int main(int argc, const char * argv[]) {!
!
int n;!
float value=0, increment,t=0, p=1.67262E-27, h=6.62607E-34,G=6.67408E-11,
c=299792459,protons[100],r=0.833E-15;!
!
do!
{!
printf("By what value would you like to increment?: ");!
scanf("%f", &increment);!
printf("How many values would you like to calculate for t in equation 1 (no more than 100?):
");!
scanf("%i", &n);!
}!
while (n>=101);!
{!
for (int i=0; i<n;i++)!
{!
protons[i]=((137*137)/(t*p))*sqrt(h*4*(3.14159)*(r*r)/(G*c));!
!
int intpart=(int)protons[i];!
float decpart=protons[i]-intpart;!